home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Your Choice 3
/
Your Choice Software Collection 3.iso
/
os2
/
cards
/
deutsch.cmd
< prev
next >
Wrap
OS/2 REXX Batch file
|
1994-08-01
|
4KB
|
134 lines
/********************************************************************/
/* */
/* Kartenspiele für OS/2 */
/* */
/* Deutsche Installation, Version 1.51 */
/* */
/* Copyright 1994 (C) by Felix Maschek, Hamburg */
/* */
/* EMail: CompuServe 100120,1370 */
/* OS2SHARE */
/* */
/********************************************************************/
'@Echo Off'
/* REXXUTIL laden */
Call RxFuncAdd 'SysLoadFuncs', 'REXXUTIL', 'SysLoadFuncs'
Call SysLoadFuncs
/* Initialisieren */
Signal On Failure Name FAILURE
Signal On Halt Name HALT
Signal On Syntax Name SYNTAX
Call SysCls
Say 'Installation von CARDS 1.51...'
Say ''
/* Nachprüfen, ob bestimmte Bestandteile vorhanden sind. */
Result = SysFileTree( "CARDS.EXE", 'Files', 'F' )
If Files.0 = 0 Then
Do
Say 'FEHLER: CARDS.EXE nicht gefunden!'
Signal DONE
End
Result = SysFileTree( "PICTURES.DLL", 'Files', 'F' )
If Files.0 = 0 Then
Do
Say 'FEHLER: PICTURES.DLL nicht gefunden!'
Signal DONE
End
Result = SysFileTree( "CARDSGER.HLP", 'Files', 'F' )
If Files.0 = 0 Then
Do
Say 'FEHLER: CARDSGER.HLP nicht gefunden!'
Signal DONE
End
Result = SysFileTree( "CARDSGER.DLL", 'Files', 'F' )
If Files.0 = 0 Then
Do
Say 'FEHLER: CARDSGER.DLL nicht gefunden!'
Signal DONE
End
/* Zielverzeichnis erfragen. */
Say 'Bitte geben Sie den vollen Verzeichnisnamen ein, wohin'
Say ' CARDS installiert werden soll (Standard: C:\CARDS): '
Pull Directory
If Directory = "" Then Directory = 'C:\CARDS'
/* Zielverzeichnis, falls nötig, anlegen. */
Result = SysFileTree( Directory, 'Dirs', 'D' )
If Dirs.0 = 0 Then
Do
Result = SysMkDir( Directory )
if Result == 0 Then
Do
End
Else
Do
Say 'FEHLER: Kann das Zielverzeichnis nicht anlegen.'
Signal DONE
End
End
Say '';
Folder = '<WP_DESKTOP>'
/* Installation durchführen. */
Say 'Kopiere CARDS nach ' Directory '...'
Copy "CARDS.EXE" Directory"\CARDS.EXE" '1>NUL'
Copy "PICTURES.DLL" Directory"\PICTURES.DLL" '1>NUL'
Copy "CARDSGER.HLP" Directory"\CARDSGER.HLP" '1>NUL'
Copy "CARDSGER.DLL" Directory"\CARDSGER.DLL" '1>NUL'
Copy "CARDSENG.HLP" Directory"\CARDSENG.HLP" '1>NUL'
Copy "CARDSENG.DLL" Directory"\CARDSENG.DLL" '1>NUL'
Copy "CARDSNOR.HLP" Directory"\CARDSNOR.HLP" '1>NUL'
Copy "CARDSNOR.DLL" Directory"\CARDSNOR.DLL" '1>NUL'
Copy "CARDSSWE.HLP" Directory"\CARDSSWE.HLP" '1>NUL'
Copy "CARDSSWE.DLL" Directory"\CARDSSWE.DLL" '1>NUL'
Copy "CARDSFRA.HLP" Directory"\CARDSFRA.HLP" '1>NUL'
Copy "CARDSFRA.DLL" Directory"\CARDSFRA.DLL" '1>NUL'
Say 'Erzeuge Programmobjekt...'
Type = 'WPProgram'
Title = 'Kartenspiele'
Parms = 'MINWIN=DESKTOP;PROGTYPE=PM;EXENAME='Directory'\CARDS.EXE;PARAMETERS=CARDSGER;STARTUPDIR='Directory';OBJECTID=<CARDS>;NOPRINT=YES;'
Result = SysCreateObject( Type, Title, Folder, Parms, 'ReplaceIfExists' )
If Result = 1 Then
Say 'Objekt erzeugt! Fertig.'
Else
Say 'FEHLER: Nicht erzeugt!'
Signal DONE
FAILURE:
Say 'Fehler in der REXX-Ausführung.'
Signal DONE
HALT:
Say 'REXX-Halt.'
Signal DONE
SYNTAX:
Say 'REXX-Syntaxfehler.'
Signal DONE
DONE:
Exit